from flask import Flask, redirect, url_for
from flask_sqlalchemy import SQLAlchemy

app = Flask(__name__)
app.secret_key = '11111111111'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///bs.db'
db = SQLAlchemy(app)

with app.app_context():
    from models import User,Personal,Blog,Comment,Like,Check
    db.create_all()

from blueprints import blueprint_register
blueprint_register(app)

@app.route('/')
def hello_world():
    return redirect(url_for('auth.get_public_page_of_login'))

if __name__ == '__main__':
    app.run()